package cn.funeralobjects.upm.web.model;

import cn.funeralobjects.upms.enums.HttpMethod;
import cn.funeralobjects.upms.enums.Protocol;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author FuneralObjects
 * Create date: 2020/5/12 10:51 AM
 */
@Data
@Accessors(chain = true)
public class MApi {
    /**
     * 名称
     */
    @NotEmpty
    private String name;
    /**
     * 范围
     */
    @NotEmpty
    private String scope;
    /**
     * 协议
     */
    @NotNull
    private Protocol protocol;
    /**
     * 方法
     */
    @NotNull
    private HttpMethod method;
    /**
     * 路径
     */
    @NotEmpty
    private String url;
}
